package gitee.derumin.configurablefireworkexplosion;

import gitee.derumin.configurablefireworkexplosion.config.ModConfig;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;

public class ConfigurableFireworkExplosion implements ModInitializer {
    @Override
    public void onInitialize() {
        ModConfig.getInstance().init();
        ServerLifecycleEvents.SERVER_STOPPING.register((server) -> ModConfig.getInstance().saveConfig());
    }
}
